package org.dm.utils
{	
	public class Stack
	{
		private var _stack:Array;
		
		public function Stack()
		{
			_stack = new Array();
		}

		public function length():int
		{
			return _stack.length;
		}
		
		public function empty():Boolean
		{
			return _stack.length==0;
		}
		
		public function clear():void
		{
			m_Stack.length = 0;	
		}
		
		public function push(data:*):void
		{
			_stack.push(data);
		}
		
		public function pop():*
		{
			return _stack.length == 0?null:_stack.pop();
		}
	}
}